Skip to content

Load: Stablized the IoTDBLoadTsFileWithModIT#17730

Open
Caideyipi wants to merge 1 commit into
masterfrom
load-it
Open

Load: Stablized the IoTDBLoadTsFileWithModIT#17730
Caideyipi wants to merge 1 commit into
masterfrom
load-it

Conversation

@Caideyipi
Copy link
Copy Markdown
Collaborator

Description

As the title said.


This PR has:

  • been self-reviewed.
    • concurrent read
    • concurrent write
    • concurrent read and write
  • added documentation for new or modified features or behaviors.
  • added Javadocs for most classes and all non-trivial methods.
  • added or updated version, license, or notice information
  • added comments explaining the "why" and the intent of the code wherever would not be obvious
    for an unfamiliar reader.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold
    for code coverage.
  • added integration tests.
  • been tested in a test IoTDB cluster.

Key changed/added classes (or packages if there are too many classes) in this PR

@sonarqubecloud
Copy link
Copy Markdown

luoluoyuyu

This comment was marked as outdated.

Copy link
Copy Markdown
Member

@luoluoyuyu luoluoyuyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review summary

Handles transient InconsistentDataException during async load when show databases is briefly inconsistent across DataNodes. Retry loop structure and Thread.currentThread().interrupt() on InterruptedException are correct.

Looks good to merge.

break;
}
}
} catch (InconsistentDataException ignored) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Catching InconsistentDataException and retrying is appropriate for this async load scenario. Optional: if all 10 retries fail, consider mentioning retry count in the final assertion message to simplify debugging. Not blocking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants